 <div class="layui-container fly-marginTop fly-user-main"> 
   {include file="user/left" /}
   <div class="site-tree-mobile layui-hide"> 
    <i class="layui-icon"></i>
   </div>
   <div class="site-mobile-shade"></div> 
   <div class="fly-panel fly-panel-user" pad20=""> 
    <div class="layui-tab layui-tab-brief" lay-filter="user"> 
     <ul class="layui-tab-title"> 
      <li class="layui-this"> <a href="/user/activate/">激活邮箱</a> </li> 
     </ul> 
     <div class="layui-tab-content" id="LAY_ucm" style="padding: 20px 0;"> 
      <ul class="layui-form"> 
       <li class="layui-form-li"> <label for="activate">您的邮箱：</label> <span class="layui-form-text">{$user.email} <em style="color:#c00;">（{$user.is_active?"已激活":'尚未激活'}）</em> </span> </li> 
       <li class="layui-form-li" style="margin-top: 20px; line-height: 26px;"> 
        <div>
          1. 如果您未收到邮件，或激活链接失效，您可以 
         <a class="layui-form-a" style="color:#4f99cf;" id="activate" href="javascript:;" email="6955044@qq.com">重新发送邮件</a>，或者 
         <a class="layui-form-a" style="color:#4f99cf;" href="{:url('index/user/set')}">更换邮箱</a>； 
        </div> 
        <div>
          2. 如果您始终没有收到 Fly 发送的邮件，请注意查看您邮箱中的垃圾邮件； 
        </div> 
        <div>
          3. 如果你实在无法激活邮件，您还可以邮箱联系管理员：xianxin@layui-inc.com 
        </div> </li> 
      </ul> 
     </div> 
    </div> 
   </div>
  </div>

  <script>
      layui.use(['layer'],function () {
          layer = layui.layer;


          $('#activate').click(function(event) {
              $.get('{:url('index/user/send')}', function(data) {
                  if(data.code==0){
                    layer.msg(data.msg,{icon:2});
                  }else{
                    layer.msg(data.msg,{icon:1});
                  }
              });
          });
      })
  </script>